extends Control


# 小子行动
func _on_出大_pressed():
	ObjectManager.soundManager.play(SoundType.button_click)
	if !GameUtils.checkIsReadyAction() || !GameUtils.checkActionEnough(SpendData.COST_BORN_BIG):
		return
	ObjectManager.gameManager.operationManager.changeOperationType(OperationType.small_born_big)
	visible = false
	ObjectManager.gameManager.ui.closeDesc()


func _on_出大_mouse_entered():
	var ui = ObjectManager.gameManager.ui as UI
	ui.wantShowDesc("出大：消耗2点能量，从我身上出一个大子")


func _on_mouse_exited():
	var ui = ObjectManager.gameManager.ui as UI
	ui.closeDesc()
